package com.weixing.mall.provider.model.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.constant.DatePattern;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 积分商品兑换订单
 * </p>
 *
 * @author Small
 * @since 2020-05-08
 */
@Data
public class OrderPointVo extends BaseEntity {
    /**
     * 积分商品ID
     */
    private Long goodsId;

    /**
     * 购买人ID
     */
    private Long buyerId;

    /**
     * 购买人名称
     */
    private String buyer;

    /**
     * 兑换数量
     */
    private Integer count;

    /**
     * 花费积分
     */
    private Long amount;

    /**
     * 收货人名称
     */
    private String receiverName;

    /**
     * 收货人电话
     */
    private String receiverMobile;

    /**
     * 收货人地址详情
     */
    private String receiverAddress;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品图片
     */
    private String goodsImg;

    /**
     * 商品单价积分
     */
    private Long goodsPoint;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 乐观锁
     */
    @Version
    private Integer revision;

    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createdTime;

    /**
     * 更新人
     */
    private Long updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date updatedTime;


}
